<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page contentType="text/html; charset=gb2312"%>
<%@page import="com.tss.util.*"%>
<%@page import="com.store.*"%>
<%@page import="java.util.*"%>
<%@include file="../global_var.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'company_detail.jsp' starting page</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    
     
    <link href="style/main.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/common.js"></script>
<script language="javascript">

function clk_goback() {
	history.back();
}


</script>

</head>

<%
CompanyMgr companyMgr = new CompanyMgr();
int comid = Integer.parseInt(ParamUtils.getParameter(request,"comid","0"));
Company company = companyMgr.getComInfo(comid);
String strErr = "";
if (company == null) strErr = "此厂商信息不存在!";

%>
  

<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  <form name="operatorForm" method="post" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>

      <table width="100%" border="0" cellspacing="0" cellpadding="0">
       
        
        <tr> 
          <td height="100" align="center" valign="top" style="padding-top:10px;padding-bottom:10px;">
            <table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#000000">
              
              <%if (!strErr.trim().equals("")) {%>
              <tr> 
                <td height="24" colspan="2" bgcolor="#D7D7DB" style="padding-left:10px;">
                  错误提示：<font color=red><%=strErr%></font>
                </td>
              </tr>
              <%}%>
              <%if (strErr.trim().equals("")) {%>
              <tr> 
                <td height="24" colspan="2" bgcolor="#858585" style="padding-left:10px;">
                  <font color="#FFFFFF"><strong>厂商信息</strong></font>                </td>
              </tr>
			  <tr> 
                <td width="20%" height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">厂商编号：</td>
                <td width="80%" bgcolor="#EDEDF0" style="padding-left:5px;">
                  <%=company.getComid()%></td>
              </tr>
                <tr> 
                <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">厂商名称：</td>
                <td bgcolor="#EDEDF0" style="padding-left:5px;"><span id="htmlBeginTime">
                  </span> <%=company.getComnam()%></td>
              </tr>
               <tr> 

                <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">登记日期：</td>
                <td bgcolor="#EDEDF0" style="padding-left:5px;"> <%=company.getCreatetime()%> </td>
              </tr>
            
			
             
			   <tr> 

                <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">厂商电话：</td>
                <td bgcolor="#EDEDF0" style="padding-left:5px;">
						 <%=company.getComtel()%>
				    </td>
              </tr>
             
                <tr> 
                <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">厂商地址：</td>
                <td bgcolor="#EDEDF0" style="padding-left:5px;"> 
					 <%=company.getComaddress()%>
					</td>
              </tr>
              <%}%>
              
            
              <tr> 
                <td bgcolor="#EDEDF0" colspan="2" align="center">
                  <input type="button" onclick="clk_goback();" name="btn" value="返　回" class="inputButton"> 
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
	 
    </td>
  </tr>
</table>
</form>
</body>
</html>
